package org.lucava.boatskeeper.client;

import java.util.List;

import org.lucava.boatskeeper.shared.Boat;
import org.lucava.boatskeeper.shared.User;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("boatsKeeperService")
public interface BoatsKeeperService extends RemoteService {

	// Partie spécifique aux bateaux
	Boat addBoat(Boat aBoat);

	Boolean deleteBoat(Integer id);

	List<Boat> deleteBoats(List<Integer> ids);

	List<Boat> getBoats();

	Boat getBoat(Integer id);

	Boat updateBoat(Boat aBoat);

	// Partie spécifique aux utilisateurs
	User addUser(User anUser);

	Boolean deleteUser(Integer id);

	List<User> deleteUsers(List<Integer> ids);

	List<User> getUsers();

	User getUser(Integer id);

	User updateUser(User anUser);
}
